/* 重置和基础样式 */
:root {
  --primary-color: #409EFF;
  --success-color: #67C23A;
  --warning-color: #E6A23C;
  --danger-color: #F56C6C;
  --info-color: #909399;
  --text-color: #303133;
  --border-radius: 4px;
  --side-menu-width: 220px;
  --header-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
}

#app {
  min-height: 100%;
  position: relative;
}

/* Element Plus 样式优化 */
.el-menu {
  border-right: none !important;
  user-select: none;
}

.el-menu-item.is-active {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

.el-menu-item:hover {
  background-color: rgba(64, 158, 255, 0.1) !important;
}

/* 布局相关 */
.layout-container {
  height: 100%;
  width: 100%;
}

.layout-aside {
  width: var(--side-menu-width);
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: #001529;
  z-index: 1000;
  transition: all 0.3s;
}

.layout-main {
  min-height: 100%;
  margin-left: var(--side-menu-width);
  background-color: #f5f7fa;
  position: relative;
}

.layout-header {
  height: var(--header-height);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);
  position: relative;
  z-index: 999;
}

.layout-content {
  padding: 20px;
  min-height: calc(100vh - var(--header-height));
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 通用工具类 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
} 